package com.csun.nusing.bean.jsonbean;

import java.util.List;

/**
 * 用户信息
 * Created by Administrator on 2017/10/26.
 */

public class UserInfoJsonBean {

    /**
     * status : true
     * message : 个人信息查询成功
     * data : {"userid":10041,"username":"admin","realname":"冯志奇","password":"FCEA920F7412B5DA7BE0CF42B8C93759","phone":"15997123593","sex":1,"headpicid":44,"lastdate":1508991038000,"logincount":0,"homeid":10008,"departmentid":null,"valid":1,"createtime":1508991038000,"modifytime":1509001444000,"modifier":1,"roles":[{"roleid":2,"rolename":"机构管理员","rolecode":"home","roledesc":"管理机构信息","valid":null,"createtime":null,"modifytime":null,"modifier":null}]}
     */

    private boolean status;
    private String message;
    private UserInfoDataBean data;

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public UserInfoDataBean getData() {
        return data;
    }

    public void setData(UserInfoDataBean data) {
        this.data = data;
    }

    public static class UserInfoDataBean {
        /**
         * userid : 10041
         * username : admin
         * realname : 冯志奇
         * password : FCEA920F7412B5DA7BE0CF42B8C93759
         * phone : 15997123593
         * sex : 1
         * headpicid : 44
         * lastdate : 1508991038000
         * logincount : 0
         * homeid : 10008
         * departmentid : null
         * valid : 1
         * createtime : 1508991038000
         * modifytime : 1509001444000
         * modifier : 1
         * roles : [{"roleid":2,"rolename":"机构管理员","rolecode":"home","roledesc":"管理机构信息","valid":null,"createtime":null,"modifytime":null,"modifier":null}]
         */

        private int userid;
        private String username;
        private String realname;
        private String password;
        private String phone;
        private int sex;
        private int headpicid;
        private long lastdate;
        private int logincount;
        private int homeid;
        private String departmentid;
        private int valid;
        private long createtime;
        private long modifytime;
        private int modifier;
        private List<RolesBean> roles;

        public int getUserid() {
            return userid;
        }

        public void setUserid(int userid) {
            this.userid = userid;
        }

        public String getUsername() {
            return username;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public String getRealname() {
            return realname;
        }

        public void setRealname(String realname) {
            this.realname = realname;
        }

        public String getPassword() {
            return password;
        }

        public void setPassword(String password) {
            this.password = password;
        }

        public String getPhone() {
            return phone;
        }

        public void setPhone(String phone) {
            this.phone = phone;
        }

        public int getSex() {
            return sex;
        }

        public void setSex(int sex) {
            this.sex = sex;
        }

        public int getHeadpicid() {
            return headpicid;
        }

        public void setHeadpicid(int headpicid) {
            this.headpicid = headpicid;
        }

        public long getLastdate() {
            return lastdate;
        }

        public void setLastdate(long lastdate) {
            this.lastdate = lastdate;
        }

        public int getLogincount() {
            return logincount;
        }

        public void setLogincount(int logincount) {
            this.logincount = logincount;
        }

        public int getHomeid() {
            return homeid;
        }

        public void setHomeid(int homeid) {
            this.homeid = homeid;
        }

        public String getDepartmentid() {
            return departmentid;
        }

        public void setDepartmentid(String departmentid) {
            this.departmentid = departmentid;
        }

        public int getValid() {
            return valid;
        }

        public void setValid(int valid) {
            this.valid = valid;
        }

        public long getCreatetime() {
            return createtime;
        }

        public void setCreatetime(long createtime) {
            this.createtime = createtime;
        }

        public long getModifytime() {
            return modifytime;
        }

        public void setModifytime(long modifytime) {
            this.modifytime = modifytime;
        }

        public int getModifier() {
            return modifier;
        }

        public void setModifier(int modifier) {
            this.modifier = modifier;
        }

        public List<RolesBean> getRoles() {
            return roles;
        }

        public void setRoles(List<RolesBean> roles) {
            this.roles = roles;
        }

        public static class RolesBean {
            /**
             * roleid : 2
             * rolename : 机构管理员
             * rolecode : home
             * roledesc : 管理机构信息
             * valid : null
             * createtime : null
             * modifytime : null
             * modifier : null
             */

            private int roleid;
            private String rolename;
            private String rolecode;
            private String roledesc;
            private String valid;
            private String createtime;
            private String modifytime;
            private String modifier;

            public int getRoleid() {
                return roleid;
            }

            public void setRoleid(int roleid) {
                this.roleid = roleid;
            }

            public String getRolename() {
                return rolename;
            }

            public void setRolename(String rolename) {
                this.rolename = rolename;
            }

            public String getRolecode() {
                return rolecode;
            }

            public void setRolecode(String rolecode) {
                this.rolecode = rolecode;
            }

            public String getRoledesc() {
                return roledesc;
            }

            public void setRoledesc(String roledesc) {
                this.roledesc = roledesc;
            }

            public String getValid() {
                return valid;
            }

            public void setValid(String valid) {
                this.valid = valid;
            }

            public String getCreatetime() {
                return createtime;
            }

            public void setCreatetime(String createtime) {
                this.createtime = createtime;
            }

            public String getModifytime() {
                return modifytime;
            }

            public void setModifytime(String modifytime) {
                this.modifytime = modifytime;
            }

            public String getModifier() {
                return modifier;
            }

            public void setModifier(String modifier) {
                this.modifier = modifier;
            }
        }
    }
}
